package com.xueyi.system.spection.domain.po;

import java.time.LocalDateTime;
import java.util.Date;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.spection.domain.dto.BaseShedSpectionDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

/**
 * 库房检查 持久化对象
 *
 * @author yanhe
 */
@TableName(value = "base_shed_spection", excludeProperty = {"sort"},autoResultMap = true)
public class BaseShedSpectionPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 物料
     */
    @Excel(name = "物料")
    @TableField("material")
    private String material;

    /**
     * 处理措施
     */
    @Excel(name = "处理措施")
    @TableField("hand_measures")
    private String handMeasures;

    /**
     * 附件
     */
    @Excel(name = "附件")
    @TableField(value = "appendix", typeHandler = FastjsonTypeHandler.class)
    private JSONArray appendix;

    /**
     * 检查日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "检查日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("check_date")
    private LocalDateTime checkDate;

    /**
     * 检查员
     */
    @Excel(name = "检查员")
    @TableField("inspector")
    private String inspector;

    /**
     * 状态
     */
    @Excel(name = "状态")
    @TableField("status")
    private String status;

    public JSONArray getAppendix() {
        return appendix;
    }

    public void setAppendix(JSONArray appendix) {
        this.appendix = appendix;
    }

    public LocalDateTime getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(LocalDateTime checkDate) {
        this.checkDate = checkDate;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getMaterial() {
        return material;
    }

    public void setHandMeasures(String handMeasures) {
        this.handMeasures = handMeasures;
    }

    public String getHandMeasures() {
        return handMeasures;
    }


    public void setInspector(String inspector) {
        this.inspector = inspector;
    }

    public String getInspector() {
        return inspector;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
